package com.gxar.marketdelivery.infra.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author nice
 * @version 1.0
 * @created 2023/7/23.
 */
@Data
@NoArgsConstructor
@TableName("market_delivery_plan_subscriber")
public class DeliveryPlanSubscriberEntity implements Serializable {

    public static final String DELIVERY_PLAN_ID = "delivery_plan_id";

    public static final String SUBSCRIBER_MIS = "subscriber_mis";

    public static final String FIELD_STATUS = "status";

    public static final String FIELD_GMT_MODIFY = "gmt_modify";

    public static final String FIELD_ID = "id";

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 投放计划ID
     */
    private Long deliveryPlanId;
    /**
     * 订阅人MIS号
     */
    private String subscriberMis;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modify", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModify;

    /**
     * 有效状态(0:无效，1:有效)
     */
    private Integer status = 1;
}
